import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import MainApp from './App.tsx'
import './index.css'

import { App, ConfigProvider } from  'antd'
import zhCN from 'antd/locale/zh_CN'
import 'dayjs/locale/zh-cn'
import { BrowserRouter } from 'react-router-dom'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <ConfigProvider locale={zhCN}>
      <App>
        <BrowserRouter>
          <MainApp />
        </BrowserRouter>
      </App>
    </ConfigProvider>
  </StrictMode>,
)
